import {request} from '@/plugins/axios'

//分页查询 列表
export function getDistributionPage(data, pageNum, pageSize) {
    return request({
        url: '/distribution/page?pageNum='+pageNum+'&pageSize='+pageSize,
        method: 'post',
        data:data
    })
}

//获取规则信息
export function getRuleInfoApi(){
    return request({
        url:'/distribution/getRuleInfo',
        method:'get'
    })
}

//修改规则信息
export function updateRuleInfoApi(data){
    return request({
        url:'/distribution/updateRuleInfo',
        method:'put',
        data:data
    })
}

//执行分配
export function executeDistributionApi(){
    return request({
        url:'/distribution/executeDistribution',
        method:'post',
    })
}
